package com.example.boot0503.controller;

import com.example.boot0503.entity.User;
import com.example.boot0503.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {
    @Autowired
    UserMapper mapper;
    @RequestMapping("/show")
    public List<User> show(){
        return mapper.select();
    }
}
